package java3_21.Computer;

public class Computer {
private String brand;
private CPU cpu;
private EMS ems;
private HardDisk hd;
private UsbMouse um;
private UsbKeyboard uk;

public void print(){
    System.out.println("计算机的信息如下:");
    System.out.println("计算机的品牌是:"+this.brand);
    System.out.println("CPU的品牌是:"+cpu.brand()+"主频是:"+cpu.basicFrequency());
    System.out.println("内存容量是:"+ems.capacity()+"品牌是:"+ems.type());
    System.out.println("硬盘容量是:"+hd.capacity());
    System.out.println(um.mlink());
    System.out.println(uk.klink());
}

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public CPU getCpu() {
        return cpu;
    }

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }

    public EMS getEms() {
        return ems;
    }

    public void setEms(EMS ems) {
        this.ems = ems;
    }

    public HardDisk getHd() {
        return hd;
    }

    public void setHd(HardDisk hd) {
        this.hd = hd;
    }

    public UsbMouse getUm() {
        return um;
    }

    public void setUm(UsbMouse um) {
        this.um = um;
    }

    public UsbKeyboard getUk() {
        return uk;
    }

    public void setUk(UsbKeyboard uk) {
        this.uk = uk;
    }
}
